package com.wly.network.packet
{
	import com.netease.protobuf.Message;
	import flash.utils.getDefinitionByName;
	import flash.utils.ByteArray;

	/**
	 * @author Administrator
	 */
	public class SCPacket extends Packet
	{
		public function processPkt():void
		{
			
		}
		
		public function unSerialization(byteArr:ByteArray):void
		{
			if(!byteArr)
			{
				return;
			}
			
			var cls:Class = getDefinitionByName(getGpbClassName()) as Class;
			if(cls)
			{
				var gpbMsg:Message = new cls as Message;
				if(gpbMsg)
				{
					gpbMsg.mergeFrom(byteArr);
				}
			}
		}
	}
}
